import request from '@/utils/request.js';

// 登录系统
export function postLogin(data) {
  return request({
    url: 'api/screen/login',
    method: 'post',
    data
  })
}

// 获取设备数量统计
export function getDiveceStatistics(params) {
  return request({
    url: 'api/screen/getNumTotal',
    method: 'get',
    params
  })
}

// 获取设备报废趋势列表
export function getDiveceScrapList(params) {
  return request({
    url: 'api/screen/getEquipmentBf',
    method: 'get',
    params
  })
}

// 获取设备增长趋势列表
export function getDiveceGrowthList(params) {
  return request({
    url: 'api/screen/getEquipmentAdd',
    method: 'get',
    params
  })
}

// 获取各科室领用耗材总价
export function getDepartmentTotal(params) {
  return request({
    url: 'api/screen/getConsumablesOutlog',
    method: 'get',
    params
  })
}

// 获取各科室设备数量
export function getDepartmentDevice(params) {
  return request({
    url: 'api/screen/getDepartmenEquipment',
    method: 'get',
    params
  })
}

// 获取科室列表
export function getDepartmentList(params) {
  return request({
    url: 'api/screen/departmentList',
    method: 'get',
    params
  })
}

// 获取资产管理设备
export function getDeviceCost(params) {
  return request({
    url: 'api/screen/getEquipmentInfo',
    method: 'get',
    params
  })
}

// 获取调拨记录
export function getTransferRecord(params) {
  return request({
    url: 'api/screen/getEquipmentDiaobo',
    method: 'get',
    params
  })
}

// 获取领用记录
export function getReceiveRecord(params) {
  return request({
    url: 'api/screen/getConsumablesOutlogList',
    method: 'get',
    params
  })
}